cursor_pos is in characters, not bytes. (#153332, Owen Taylor)
authorMatthias Clasen <mclasen@redhat.com>
Sun, 26 Sep 2004 04:23:56 +0000 (04:23 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 26 Sep 2004 04:23:56 +0000 (04:23 +0000)
2004-09-26  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkimcontext.c (gtk_im_context_get_preedit_string):
cursor_pos is in characters, not bytes.  (#153332, Owen Taylor)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkimcontext.c

index 952edf6e3642ee4db9b1325a5da75c9c5aeefea9..5773c635ebacc5af5e1fb80b1d91641108c5e13d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,15 @@
+2004-09-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): 
+       cursor_pos is in characters, not bytes.  (#153332, Owen Taylor)
+
 2004-09-25  Robert Ögren  <gtk@roboros.com>
 
        * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
        lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
        a further fix for bug #145467.
 
-2004-09-25  Matthias Clasen  <mclasen@x1-6-00-50-fc-70-9f-e0>
+2004-09-25  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtktextiter.c (inside_word_func): Don't access 
        attr[-1].  (#153628, Padraig O'Briain)
index 952edf6e3642ee4db9b1325a5da75c9c5aeefea9..5773c635ebacc5af5e1fb80b1d91641108c5e13d 100644 (file)
@@ -1,10 +1,15 @@
+2004-09-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): 
+       cursor_pos is in characters, not bytes.  (#153332, Owen Taylor)
+
 2004-09-25  Robert Ögren  <gtk@roboros.com>
 
        * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
        lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
        a further fix for bug #145467.
 
-2004-09-25  Matthias Clasen  <mclasen@x1-6-00-50-fc-70-9f-e0>
+2004-09-25  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtktextiter.c (inside_word_func): Don't access 
        attr[-1].  (#153628, Padraig O'Briain)
index 952edf6e3642ee4db9b1325a5da75c9c5aeefea9..5773c635ebacc5af5e1fb80b1d91641108c5e13d 100644 (file)
@@ -1,10 +1,15 @@
+2004-09-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): 
+       cursor_pos is in characters, not bytes.  (#153332, Owen Taylor)
+
 2004-09-25  Robert Ögren  <gtk@roboros.com>
 
        * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
        lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
        a further fix for bug #145467.
 
-2004-09-25  Matthias Clasen  <mclasen@x1-6-00-50-fc-70-9f-e0>
+2004-09-25  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtktextiter.c (inside_word_func): Don't access 
        attr[-1].  (#153628, Padraig O'Briain)
index 952edf6e3642ee4db9b1325a5da75c9c5aeefea9..5773c635ebacc5af5e1fb80b1d91641108c5e13d 100644 (file)
@@ -1,10 +1,15 @@
+2004-09-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): 
+       cursor_pos is in characters, not bytes.  (#153332, Owen Taylor)
+
 2004-09-25  Robert Ögren  <gtk@roboros.com>
 
        * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
        lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
        a further fix for bug #145467.
 
-2004-09-25  Matthias Clasen  <mclasen@x1-6-00-50-fc-70-9f-e0>
+2004-09-25  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtktextiter.c (inside_word_func): Don't access 
        attr[-1].  (#153628, Padraig O'Briain)
index 58706832b19f9278df748253550a43b6ed64f2b6..3f993cfa401761c1d5c01c5605e99841cece6f01 100644 (file)
@@ -269,7 +269,7 @@ gtk_im_context_set_client_window (GtkIMContext *context,
  * @attrs:      location to store the retrieved attribute list.
  *              When you are done with this list, you must
  *              unreference it with pango_attr_list_unref().
- * @cursor_pos: location to store position of cursor (in bytes)
+ * @cursor_pos: location to store position of cursor (in characters)
  *              within the preedit string.  
  * 
  * Retrieve the current preedit string for the input context,
@@ -522,7 +522,7 @@ gtk_im_context_get_surrounding (GtkIMContext *context,
  * Asks the widget that the input context is attached to to delete
  * characters around the cursor position by emitting the
  * GtkIMContext::delete_surrounding signal. Note that @offset and @n_chars
- * are in characters not in bytes, which differs from the usage other
+ * are in characters not in bytes which differs from the usage other
  * places in #GtkIMContext.
  *
  * In order to use this function, you should first call